using System.Text.RegularExpressions;
using NHibernate.Validator.Constraints;
using SharpArch.Core.DomainModel;
using SharpArch.Core.NHibernateValidator;

namespace ETestIT.Core
{
    [HasUniqueDomainSignature]
    public class JobTitle : Entity
    {
        [DomainSignature]
        [NotNullNotEmpty]
        [Length(3, 32)]
        [Pattern(@"\w", RegexOptions.Compiled, "spaces are not allowed as value")]
        public virtual string Name { get; set; }
    }
}